<script setup lang="ts">
import TheSidebar from "./components/TheSidebar.vue";
import TheHeader from "./components/TheHeader.vue";
import TheFooter from "./components/TheFooter.vue";
</script>

<template>
  <div class="app">
    <TheHeader></TheHeader>
    <div class="main">
      <TheSidebar></TheSidebar>
      <div class="menu-content">
        <router-view></router-view>
      </div>
    </div>
    <TheFooter></TheFooter>
  </div>
</template>

<style>
html,
body {
  margin: 0;
  padding: 0;
}
.app {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

ul,
li {
  list-style: none;
}
ul {
  margin: 0;
  padding: 0;
}
a {
  text-decoration: none;
}
.main {
  flex: 1;
  background-color: #ffec99;
  position: relative;
}

.menu-content {
  padding-left: 250px;
}

/*路由选中样式*/
.router-link-active {
  background-color: #3185bf;
}
</style>
